<?php

require_once ('BaseService.php');

//DONE
/**
 * @author Virtualidad
 * @version 1.0
 * @created 29-dic-2010 09:57:49 a.m.
 */
class PensumService extends BaseService {

    /**
     *
     * @param PensumPk $CodigoPensum
     * @return <type>
     */
    function GetById($CodigoPensum) {
        $response = parent::invokeService("GetById", $CodigoPensum);
        Loader::using("models::entities::Pensum");
        $result = parent::processSingleObjectResponse($response, parent::getMimeType(), "Pensum", Pensum::MAPPING());
        return $response;
    }

    /**
     *
     * @param int $CodigoPlan
     * @return <type>
     */
    function GetByPlanEstudio($CodigoPlan) {
        $response = parent::invokeService("GetByPlanEstudio", $CodigoPlan);
        Loader::using("models::entities::Pensum");
        $result = parent::processArrayResponse($response, parent::getMimeType(), "Pensum", Pensum::MAPPING());
        return $response;
    }

    public function GetCurrentPensum($CodigoEstudiante) {
        $response = parent::invokeService("GetCurrentPensum", $CodigoEstudiante);
        Loader::using("models::entities::Pensum");
        $result = parent::processArrayResponse($response, parent::getMimeType(), "Pensum", Pensum::MAPPING());
        return $result;
    }

    public function getServiceClass() {
        return "Pensum";
        $response = parent::invokeService("GetByPlanEstudio", $CodigoPlan);
    }

}

?>